package com.easytake.emotioncat.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 猫粮表
 * </p>
 *
 * @author baomidou
 * @since 2022-11-11
 */
@Getter
@Setter
@TableName("em_food")
public class EmFoodEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 自增主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 对应wx的userId
     */
    @TableField("user_id")
    private String userId;

    /**
     * 情绪类型
     */
    @TableField("category")
    private String category;

    /**
     * 数量
     */
    @TableField("total_quantity")
    private Integer totalQuantity = 0;

    /**
     * 今日累计收获计数器,达到最大量后不能再收获
     */
    @TableField("today_quantity")
    private Integer todayQuantity = 0;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField("modify_time")
    private LocalDateTime modifyTime;
}
